﻿<phone:PhoneApplicationPage 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
	x:Class="OmnipotentFlashlight.SoftDetail"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="Portrait" Orientation="Portrait" Style="{StaticResource TransitionPageStyle}"
	shell:SystemTray.IsVisible="True">
	<phone:PhoneApplicationPage.Resources>
		<DataTemplate x:Key="DataTemplate1">
			<StackPanel Margin="10,20,35,5" Height="238" Width="180"  Orientation="Horizontal">
                <Image HorizontalAlignment="Left" VerticalAlignment="Top" Source="{Binding}"
					Width="177" Height="236"/>
			</StackPanel>
		</DataTemplate>
		<ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
			 <toolkit:WrapPanel Orientation="Horizontal"/>
		</ItemsPanelTemplate>
	</phone:PhoneApplicationPage.Resources>

	<!--LayoutRoot 是放置所有页面内容的根网格-->
	<Grid x:Name="LayoutRoot" Background="Transparent">
		<!--透视控件-->
		<controls:Pivot Title="软件推荐">
			<!--透视项目一-->
			<controls:PivotItem x:Name="piv1" Header="详细信息">
				<Grid>
					<Grid x:Name="g_content" HorizontalAlignment="Left" VerticalAlignment="Top">
						<Image x:Name="s_img" HorizontalAlignment="Right" Margin="0,17,-306,-65" Width="150" Source="icon/ad.png"/>
						<TextBlock x:Name="s_title" Margin="9,19,-185,33" TextWrapping="Wrap" Text="软件标题" FontSize="37.333"/>
						<Image x:Name="s1" Height="37" Margin="4,0,0,-20" VerticalAlignment="Bottom" Source="icon/Star.png" HorizontalAlignment="Left" Width="43"/>
						<Image x:Name="s2" Height="37" Margin="6,0,57,-20" VerticalAlignment="Bottom" Source="icon/Star.png"/>
						<Image x:Name="s3" Height="37" Margin="47,0,57,-20" VerticalAlignment="Bottom" Source="icon/Star.png"/>
						<Image x:Name="s4" Height="37" Margin="0,0,33,-20" VerticalAlignment="Bottom" Source="icon/Star.png" HorizontalAlignment="Right" Width="37"/>
						<Image x:Name="s5" HorizontalAlignment="Right" Height="37" Margin="0,0,10,-20" VerticalAlignment="Bottom" Width="37" Source="icon/Star.png"/>
						<TextBlock x:Name="s_sores" Margin="0,0,-18,-12" TextWrapping="Wrap" Text="5分" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="24" FontSize="13.333" Foreground="#5BFFFFFF"/>
						<TextBlock x:Name="s_size" Margin="15,0,15,-65" TextWrapping="Wrap" Text="2.5MB" VerticalAlignment="Bottom"/>
						<ScrollViewer Margin="13,0,-315,-426" Height="331" VerticalAlignment="Bottom">
							<TextBlock x:Name="s_desc" TextWrapping="Wrap" Text="软件描述" Width="443"/>
						</ScrollViewer>
					</Grid>
					<TextBlock x:Name="s_loading1" TextWrapping="Wrap" Text="正在加载..." VerticalAlignment="Top" Height="46" Margin="21,25,166,0" FontSize="32"/>
				</Grid>
			</controls:PivotItem>

 			<!--透视项目二-->
			<controls:PivotItem x:Name="piv2" Header="屏幕截图">
				<Grid>
					<Grid x:Name="g_content2" Visibility="Collapsed">
						<ListBox ItemTemplate="{StaticResource DataTemplate1}" 
						ItemsPanel="{StaticResource ItemsPanelTemplate1}"
						 ItemsSource="{Binding}"  toolkit:TiltEffect.IsTiltEnabled="True"
						 Name="list" SelectionChanged="list_SelectionChanged"
						/>
					</Grid>
					<TextBlock x:Name="s_loading2" Margin="24,21,26,0" TextWrapping="Wrap" Text="正在加载..." VerticalAlignment="Top" Height="52" FontSize="32" d:LayoutOverrides="VerticalAlignment"/>
				</Grid>
			</controls:PivotItem>
		</controls:Pivot>
	</Grid>
	
	<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">
            <shell:ApplicationBarIconButton IsEnabled="False" Text="下载" IconUri="icon/download.png" Click="ApplicationBarIconButton_Click"/>
	 </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>